package com.clw.repository;

import com.clw.dataobject.DataDictionary;
import org.springframework.data.domain.Page;
import org.springframework.data.domain.Pageable;
import org.springframework.data.jpa.domain.Specification;
import org.springframework.data.jpa.repository.JpaRepository;

import java.util.List;

/**
 * Created by Administrator on 2017-11-18.
 */
public interface DataDictionaryRepository extends JpaRepository<DataDictionary,Integer> {
    List<DataDictionary> findAll(Specification<DataDictionary> specification);

    Page<DataDictionary> findAll(Specification<DataDictionary> specification, Pageable pageable);

    Long count(Specification<DataDictionary> specification);

    DataDictionary findByCode(String code);
}
